package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;

import com.qidianit.mes.pojo.pro.Process;
import com.qidianit.mes.pojo.pro.Workflow;

import java.util.ArrayList;

public interface WorkflowService {
    Result<PageInfo<Workflow>> selectList(Workflow workflow,int pageNum,int pageSize);
    Result<Workflow> selectByWorkflowCode(String workflowCode);
    Result insertWorkflow(Workflow workflow);
    Result updateById(Workflow workflow);
    Result deleteById(Long id);
    Result batchDelete(Long[] ids);

    Result<ArrayList<Workflow>> selectWorkflowById(Long[] ids);
    Result<ArrayList<Process>> selectProcessByWorkflowId(Long id);

}
